if __name__ == "__main__":
    {% if server == 'uvicorn' %}
    import uvicorn

    uvicorn.run('app:app', reload=True)
    {% elif server == 'Hypercorn' %}
    import asyncio

    from hypercorn.asyncio import serve
    from hypercorn.config import Config

    from app import app


    class CustomConfig(Config):
        use_reloader = True

    asyncio.run(serve(app, CustomConfig()))

    serve(app)
    {% elif server == 'granian' %}
    import granian

    granian.Granian("app:app", interface="asgi").serve()
    {% endif %}
